<script setup lang='ts'>
import consola from 'consola'

import { useDataStore } from '@/store/data'

const dataStore = useDataStore()

onMounted(async () => {
  await dataStore.$load({ name: 'app-data' }).catch((error: any) => consola.log(error))
})

useHead({
  title: 'Bee-PrimeVue-Admin',
  meta: [
    {
      name: 'description',
      content: '一个PrimeVue UI的Vue3后台集成方案！',
    },
  ],
})
</script>

<template>
  <div id="bar" />
  <router-view />
  <Toast />

</template>

<style lang='scss'>
@import 'App.scss';
</style>
